import React, { FC } from "react";
import { useNavigate, useSearchParams } from "react-router-dom";
const Login: FC = function Login() {
  const navigate = useNavigate();
  const [searchParams] = useSearchParams();
  console.log(searchParams);
  function clickHandle() {
    navigate(-1);
  }
  return (
    <div>
      <p>Login</p>
      <div>
        <button onClick={clickHandle}>返回</button>
      </div>
    </div>
  );
};

export default Login;
